.doctor-dashboard {
  background: #f5f7fa;

  // 侧边栏样式
  .ant-layout-sider {
    background: #2b3648 !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);

    .logo {
      height: 64px;
      color: #fff;
      font-size: 20px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      margin: 16px;
      border-radius: 4px;
      content: "COPD患者管理系统"; // 修改此处
    }

    .ant-menu {
      background: transparent;
      border-right: 0;

      .ant-menu-item {
        border-radius: 6px;
        transition: all 0.3s;

        &:hover {
          background: rgba(255, 255, 255, 0.1) !important;
        }

        &-selected {
          background: #1890ff !important;
        }
      }
    }
  }

  // 头部样式
  .header {
    background: #fff !important;
    padding: 0 24px;
    display: flex;
    align-items: center; // 保持垂直居中
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    .header-title {
      flex: 1; // 占据剩余空间
      display: flex;
      align-items: center;
      gap: 12px;
      flex-direction: row !important; // 强制横向排列
      flex-wrap: nowrap;

      .anticon {
        line-height: 1;
        margin-right: 0; // 移除默认边距
      }

      span {
        display: inline-block;
        vertical-align: middle;
      }
    }

    font-size: 18px;
    color: #2b3648;

    .anticon {
      font-size: 24px;
    }
  }

  .user-actions {
    display: flex;
    gap: 12px;
    position: absolute; // 绝对定位;
    right: 0;
    justify-content: flex-end; // 强制右对齐
  }
}

.work-records {
  .ant-table-cell {
    white-space: nowrap;

    .ant-btn {
      padding: 0 4px;
      height: auto;
    }
  }
}

.doctor-dashboard {
  .ant-layout-sider {
    .ant-menu {
      &-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 24px !important; // 增加左右padding
        margin: 8px 8px; // 调整外边距
        width: calc(100% - 16px); // 调整宽度

        .anticon {
          margin-right: 8px;
          font-size: 14px;
          flex-shrink: 0;
        }

        &>span {
          flex: 1;
          text-align: left;
          white-space: nowrap;
        }

        &-selected {
          .anticon {
            color: #fff;
          }
        }
      }
    }
  }

  .ant-layout-header {
    padding: 0 10px; // 减少头部的内边距
  }

  .ant-layout-content {
    padding: 10px; // 减少内容区域的内边距
  }

  .ant-card {
    margin-bottom: 10px; // 减少卡片之间的外边距
    padding: 10px; // 减少卡片的内边距
  }

  .ant-table {
    .ant-table-content {

      th,
      td {
        padding: 8px; // 减少表格单元格的内边距
      }
    }
  }

  .ant-modal-content {
    padding: 10px; // 减少模态框的内边距
  }

  // 新增Tabs样式
  .ant-tabs {
    height: 100%;

    &-content {
      height: 100%;
      padding: 0;
    }

    &-nav {
      margin: 0;
    }
  }

  // 确保原有内容容器样式
  .content-container {
    height: calc(100vh - 64px);
    overflow: auto;
    padding: 16px;
  }

  // 确保profile内容区域样式
  .profile-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

.ant-layout-sider {
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.profile-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-records {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

// 患者详情页面样式
.patient-detail {
  .ant-card {
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    &-head {
      border-bottom: 1px solid #f0f0f0;
      padding: 16px 24px;

      &-title {
        font-size: 16px;
        font-weight: 500;
        color: #2b3648;
      }
    }

    &-body {
      padding: 24px;
    }
  }

  .ant-descriptions-item-label {
    font-weight: 500;
    color: #666;
  }

  .ant-list-item {
    padding: 8px 0;
  }
}

  .info-row {
    margin-bottom: 16px;
    display: flex;
    align-items: center;

    .label {
      width: 120px;
      color: #666;
      margin-right: 24px;
      font-weight: 500;
    }

    .value {
      flex: 1;
      color: #333;
      font-size: 14px;
    }
  }

  .examination-list,
  .treatment-list {
    margin-bottom: 16px;

    .list-item {
      margin-bottom: 12px;
      padding: 12px 16px;
      background: #f5f7fa;
      border-radius: 6px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }

  .discharge-advice {
    padding: 16px;
    background: #f5f7fa;
    border-radius: 6px;
    margin-top: 16px;
  }

.discharge-advice {
  padding: 16px;
  background: #f5f7fa;
  border-radius: 4px;
  margin-top: 16px;
}